﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate;
using NHibernate.Criterion;

namespace FJASPX.Framwork.Query
{
    /// <summary>
    /// 业务相关的查询器
    /// </summary>
    [Serializable]
    public class DomainCriteriaQueryTemplate : CriteriaQueryTemplate
    {
        public DomainCriteriaQueryTemplate(ISessionFactory sessionFactory)
        {
            base.SessionFactory = sessionFactory;
        }

        public new Page PagedQuery(DetachedCriteria detachedCriteria, int pageNo, int pageSize, List<Order> orders)
        {
            return base.PagedQuery(detachedCriteria, pageNo, pageSize, orders);
        }

        public new int RowCountQuery(DetachedCriteria detachedCriteria)
        {
            return base.RowCountQuery(detachedCriteria);
        }
    }
}
